#ifndef CDIRECTWRITE_H_
#define CDIRECTWRITE_H_

#include <vector>
#include <string>
#include <D3D10_1.h>
#include <D3DX10.h>


class CDirectWrite
{
public:

	//remember custom fonts need to be installed in the installer.... you know just and fyi and shit; but i did put them in the /fonts folder
	//enum for fonts here
	enum m_eFonts{DEFAULT = 0, FPS, EARTH, MAX_FONTS};

private:

	CDirectWrite();
	~CDirectWrite();
	CDirectWrite(const CDirectWrite&);
	CDirectWrite& operator=(const CDirectWrite&);


	//start with 1 font will want a vector etc etc
	std::vector<ID3DX10Font*> m_vFonts;
	//ID3DX10Font* m_pFont;
	ID3DX10Sprite* m_pFontSprite;

	ID3D10BlendState* m_pOriginalBlendState10;
	ID3D10BlendState* m_pFontBlendState10;

	void GetFontRectangle(m_eFonts eType, std::string text, RECT* rect);

public:

	static CDirectWrite* GetInstance();

	bool InitFonts();
	void DrawText(m_eFonts eType, std::string text, int xOffset, int yOffset, D3DXCOLOR color);

	void ShutDown();

};

#endif